package com.yaxin.heshanghui.utils;

import java.util.List;

/**
 * 判断List是否为空
 *
 * @author Yangjie
 *         className CollectionUtil
 *         created at  2017/3/17  13:01
 */
public class BiuooCollectionUtil {
    private static volatile BiuooCollectionUtil singleton;

    private BiuooCollectionUtil() {
    }

    public static BiuooCollectionUtil getInstance() {
        if (singleton == null) {
            synchronized (BiuooCollectionUtil.class) {
                if (singleton == null) {
                    singleton = new BiuooCollectionUtil();
                }
            }
        }
        return singleton;
    }

    public boolean isEmpty(List list) {
        return list == null || list.size() <= 0;
    }
}
